Part 4
========


1) Create a file 'openvpn' in the folder '/etc/default'

# This is the configuration file for /etc/init.d/openvpn

#
# Start only these VPNs automatically via init script.
# Allowed values are "all", "none" or space separated list of
# names of the VPNs. If empty, "all" is assumed.
#
#AUTOSTART="all"
#AUTOSTART="none"
#AUTOSTART="home office"
#
# Refresh interval (in seconds) of default status files
# located in /var/run/openvpn.$NAME.status
# Defaults to 10, 0 disables status file generation
#
#STATUSREFRESH=10
#STATUSREFRESH=0

You can specify a specific configuration by means of AUTOSTART.
Use the name of the file (located in /etc/openvpn), but without the path & extension!

So, if the configuration file is:
/etc/openvpn/openvpn.conf

The specify:
AUTOSTART="openvpn"



2) Place this attached file "init.d-openvpn-file" into the folder '/etc/init.d/'
and rename it into openvpn

(I took it from the installation after '$ apt-get install openvpn' (which I removed
because it didn't work; the init.d file was still there... and re-used it here!)

*** Note that:
DAEMON=/usr/sbin/openvpn

*** has been set to:
DAEMON=/usr/local/sbin/openvpn

Set the excecute permission:
$ chmod a+x /etc/init.d/openvpn

To start the daemon:
$ /etc/init.d/openvpn start
Starting virtual private network daemon: openvpn(OK).

That's it.

By means of a simple traceroute of a certain domain you can see how the tunnel is used.
Check the correct working from a pc that is connected to the LAN. If you can't surf,
there likely is a problem with the vpn. You can stop the vpn by means of:
$ /etc/init.d/openvpn stop

